package com.business.lgh.naocs.naming.core.pojo;

import lombok.Data;

import java.io.Serializable;

/**
 * @author lgh
 * @version V1.0
 * @Package com.business.lgh.naocs.naming.core.pojo
 * @date 2020/6/28 3:26 下午
 */
@Data
public class Member implements Serializable {

    String ip;
    int port;

    public Member(String ip, int port) {
        this.ip = ip;
        this.port = port;
    }


    public String getAddress(){
        return ip+":"+port;
    }
}
